Leat\Application\Services\GiftcardProductService D

Total Complexity 141
Dependencies 9
Dependents 1
Total lines 1,069
Lines of code 708
Logical lines of code 337
Comment lines 212
Methods 17
Properties 5

Methods 17

Method Rating Maintainability Complexity Lines of code
process_giftcard_order()
D
24
31 198
handle_giftcard_withdrawal_refund()
C
33 24 101
handle_giftcard_withdrawal()
B
34 21 93
save_giftcard_recipient_email()
A
46 9 39
add_giftcard_recipient_field()
A
42 7 54
send_giftcard_email()
A
44 6 50
validate_giftcard_recipient_email()
A
54 8 19
create_giftcard()
S
51 6 26
add_refund_field_script()
S
54 6 23
save_giftcard_program_settings()
S
59 5 14
add_giftcard_program_settings()
S
51 4 26
init()
S
52 4 22
calculate_giftcard_amount()
S
65 3 8
find_matching_refunded_order_item()
S
63 3 10
format_giftcard_meta_display()
S
64 2 10
__construct()
S
69 1 7
add_giftcard_product_tab()
S
67 1 8